package com.weixin.engine.daily.easyExcel;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelReader;
import com.alibaba.excel.read.metadata.ReadSheet;

import java.io.*;

/**
 * todo
 *
 * @author wangchunhui
 * @date 2023/5/6 10:07
 */
public class PersonListenerTest {
    public static void main(String[] args) throws Exception {
        File file = new File("D:\\codeInstances\\springboot-test2022.1.24\\ch_engine\\src\\main\\resources\\excel测试模板.xlsx");
        InputStream inputStream = new FileInputStream(file);
        PersonListener personListener = new PersonListener();
        ExcelReader excelReader = EasyExcel.read(inputStream, personListener).build();
        ReadSheet sheet1 = EasyExcel.readSheet(0).build();
        excelReader.read(sheet1);
    }
}
